package array.bisection;

/**
 * @Author: 海琳琦
 * @Date: 2021/12/13 11:53
 */
public class Title367 {
    public static void main(String[] args) {

    }

    private static boolean isPerfectSquare(int num) {
        int start = 0, end = num / 2 + 1;
        int middle;
        while(start<=end){
            middle = (start + end) / 2;
            if((long)middle*middle<num){
                start = middle + 1;
            }else if((long)middle*middle>num){
                end = middle - 1;
            }else{
                return true;
            }
        }
        return false;
    }
}
